package org.zjz.basket.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.zjz.basket.dto.RegisterChartDTO;
import org.zjz.basket.dto.RegisterTeamDTO;
import org.zjz.basket.service.TeamService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zjz
 * @since 05/08/2022 - 01:21 下午
 */
@RestController
@RequestMapping("/team")
public class TeamController {
    @Autowired
    TeamService teamService;

    @PostMapping("/saveUpdate")
    public void saveUpdate(@RequestBody RegisterChartDTO dto){
        teamService.saveUpdate(dto);
    }

    @PostMapping("/upload")
    public String upload(MultipartFile file) {
        return "success";
    }
}
